<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Kra8\Snowflake\HasSnowflakePrimary;
use Illuminate\Database\Eloquent\SoftDeletes;

class RepairerDeviceGroup extends Model
{
    use SoftDeletes;
    use HasSnowflakePrimary;
    public $incrementing = false;
    protected $fillable = [
        'user_id','device_group_id'
    ];
    public function user(){
        return $this->hasMany('App\Models\User','user_id');
    }
    public function device_group(){
        return $this->hasMany('App\Models\Group','device_group_id');
    }
}
